package com.ftu.study.pattern.state.impl;

import com.ftu.study.pattern.state.GumballMachine2;
import com.ftu.study.pattern.state.State;

/**
 * Created by zhanghr on 2018/12/22.
 */
public class NoQuarterState implements State {
    GumballMachine2 machine2;

    public NoQuarterState(GumballMachine2 machine2) {
        this.machine2 = machine2;
    }

    @Override
    public void insertQuarter() {
        System.out.println("You inserted a quarter");
//        this.machine2.setState(machine2.h);
    }

    @Override
    public void ejedtQuarter() {

    }

    @Override
    public void turnCrank() {

    }

    @Override
    public void dispense() {

    }
}
